package cn.itcast.bos.base.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.base.Standard;

public interface StandardDao extends JpaRepository<Standard, Integer>,
	JpaSpecificationExecutor<Standard>{

	//方法一
	public Standard findByName(String name);
	
	//方法二
	@Query(value="from Standard")
	public List<Standard> query();
}
